import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;


public class ResultPanel extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private JTable resultTable;
	private ResultTableModel model;

	public ResultPanel(int size){
		model = new ResultTableModel(size);
		resultTable = new JTable(model);
		resultTable.setFillsViewportHeight(true);
		resultTable.setVisible(true);
		resultTable.setColumnSelectionAllowed(false);
		
		this.add(new JScrollPane(resultTable));
		
	}
	
	
	
	public ResultTableModel getModel() {
		return model;
	}
	
	public JTable getResultTable() {
		return resultTable;
	}
}
